/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package hu.arguscab.game;

import org.lwjgl.input.Keyboard;

/**
 *
 * @author sharp
 */
public class Human extends Controller{

	private CompoundAction actions = new GameCompoundAction();

	@Override
	public CompoundAction control() {
		actions.clear();
		if ( Keyboard.isKeyDown(Keyboard.KEY_W) )
			actions.addAction(GameAction.THROTTLE);
		if ( Keyboard.isKeyDown(Keyboard.KEY_A) )
			actions.addAction(GameAction.LEFT);
		if ( Keyboard.isKeyDown(Keyboard.KEY_S) )
			actions.addAction(GameAction.BREAK);
		if ( Keyboard.isKeyDown(Keyboard.KEY_D) )
			actions.addAction(GameAction.RIGHT);
		return actions;
	}

	@Override
	public String toString() {
		return "Human";
	}

	public void draw() {
	}
}
